<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
			function checkAll()
			{
				var d=document.getElementById("all");
				var ar=document.getElementsByName("gamezhuangbei");
				for(var i=0;i<ar.length;i++)
				{ 
					ar[i].checked=d.checked;
				}
			}
		</script>
	</head>
	<body>
		<input  type="checkbox" value="all" id="all" onclick="checkAll()"/>全选
		<input type="checkbox" name="gamezhuangbei" value="dunjia" />奇门遁甲1
		<input type="checkbox" name="gamezhuangbei" value="dunjia" />奇门遁甲2
		<input type="checkbox" name="gamezhuangbei" value="dunjia" />奇门遁甲4
		<input type="checkbox" name="gamezhuangbei" value="dunjia" />奇门遁甲3
		<input type="checkbox" name="gamezhuangbei" value="dunjia" />奇门遁甲5
		<input type="checkbox" name="gamezhuangbei" value="dunjia" />奇门遁甲6
	</body>
</html>
